package com.example;

/**
 * @desc:
 * @author: Shoko
 * @date: 2025/5/25
 */
public class WarningLight implements ResponseDevice {
    @Override
    public void response(TempEvent event) {
        if (event.getTemp() > 30) { // 假设30度以上闪烁
            System.out.println("警示灯: 温度" + event.getTemp() + "℃过高，开始闪烁！");
        }
    }
}
